package flaud

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type EvidenceTyRouter struct{}

// InitEvidenceTyRouter 初始化 证据类型管理 路由信息
func (s *EvidenceTyRouter) InitEvidenceTyRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
	ETRouter := Router.Group("ET").Use(middleware.OperationRecord())
	ETRouterWithoutRecord := Router.Group("ET")
	ETRouterWithoutAuth := PublicRouter.Group("ET")
	{
		ETRouter.POST("createEvidenceTy", ETApi.CreateEvidenceTy)             // 新建证据类型管理
		ETRouter.DELETE("deleteEvidenceTy", ETApi.DeleteEvidenceTy)           // 删除证据类型管理
		ETRouter.DELETE("deleteEvidenceTyByIds", ETApi.DeleteEvidenceTyByIds) // 批量删除证据类型管理
		ETRouter.PUT("updateEvidenceTy", ETApi.UpdateEvidenceTy)              // 更新证据类型管理
	}
	{
		ETRouterWithoutRecord.GET("findEvidenceTy", ETApi.FindEvidenceTy)       // 根据ID获取证据类型管理
		ETRouterWithoutRecord.GET("getEvidenceTyList", ETApi.GetEvidenceTyList) // 获取证据类型管理列表
	}
	{
		ETRouterWithoutAuth.GET("getEvidenceTyPublic", ETApi.GetEvidenceTyPublic) // 证据类型管理开放接口
	}
}
